package com.swak.wechat.sem;

import java.util.Map;

import com.swak.utils.Maps;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class Qrcode {

	private Integer expire_seconds;
	private QrcodeScene action_name;
	private Map<String, Map<String, String>> action_info = Maps.newHashMap();

	public static Qrcode tempQrcode(String value) {
		Qrcode qrcode = new Qrcode();
		qrcode.expire_seconds = 3600;
		qrcode.action_name = QrcodeScene.QR_STR_SCENE;
		Map<String, String> scene = Maps.newHashMap(1);
		scene.put("scene_str", value);
		qrcode.action_info.put("scene", scene);
		return qrcode;
	}
}
